#! /bin/sh

# 添加分区
ADD_PARTITION_SQL="
ALTER TABLE tmp_jtp_oms.oms_order ADD IF NOT EXISTS PARTITION (dt = '${data_date}' );
"
# 2执行语句
/opt/module/spark/bin/beeline -u jdbc:hive2://node101:10001 -n bwie -e "${ADD_PARTITION_SQL}"